# -*- coding: utf-8 -*-
# @Time : 2025/1/25 15:14
# @Author : debbyszhang
# @File : add_sub_chainmaker.py
# @desc :
import allure

from pageObject.cross_gateway_list_page import CrossGatewayListPage


@allure.feature("添加子链")
class TestAddSubChainmaker:

    def test_add_sub_chainmaker(self, page):
        cross_gateway_page = CrossGatewayListPage(page)
        chain_rid, chain_id, org_id, cross_contract_name, ip, hostname = 'chainmaker00102', 'chain1', 'chain2', 'chain3', 'chain4', 'aaa'
        t = cross_gateway_page.add_subchain(chain_rid, chain_id, org_id, cross_contract_name, ip, hostname)
        assert t == '新增成功'
